﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject.Modules;
using ERP.Manager.DataProvider;

namespace ERP.Manager.SQLServerProvider
{
    public class ERPManagerRepositoryBindingModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IUserRepository>().To<UserRepository>();
            Bind<IDepartmentRepository>().To<DepartmentRepository>();
            Bind<IWorkRepository>().To<WorkRepository>();
            Bind<IMessageRepository>().To<MessageRepository>();
            Bind<IWorkBlogRepository>().To<WorkBlogRepository>();
            Bind<IMscallerinfoRepository>().To<MscallerinfoRepository>();
            Bind<IECS_attributeinfoRepository>().To<ECS_attributeinfoRepository>();
            Bind<IECS_brandinfoRepository>().To<ECS_brandinfoRepository>();
            Bind<IECS_categoryinfoRepository>().To<ECS_categoryinfoRepository>();
            Bind<IECS_goods_attrinfoRepository>().To<ECS_goods_attrinfoRepository>();
            Bind<IECS_goods_typeinfoRepository>().To<ECS_goods_typeinfoRepository>();
            Bind<IECS_goodsinfoRepository>().To<ECS_goodsinfoRepository>();
            Bind<IECS_sellstockinfoRepository>().To<ECS_sellstockinfoRepository>();
        }
    }
}
